package com.tgy.JUC.SampeLockDemo;

import java.awt.*;
import java.awt.event.InputEvent;
import java.awt.image.BufferedImage;

/***
 * @ClassName: test
 * @Description:
 * @Auther: 送一一块二向箔
 * @Date: 16:36 2022/3/10
 * @version : V1.0
 */
public class test {
    public static void main(String[] args) {

        System.out.println(Runtime.getRuntime().availableProcessors());
        test();
    }
    public static void test()  {
        try {
            Robot robot = new Robot();
            robot.keyPress(InputEvent.BUTTON1_MASK);
        } catch (AWTException e) {
            e.printStackTrace();
        }

        System.out.println("test");
    }
}
